package com.study.design.composite;

import lombok.extern.slf4j.Slf4j;


/**
 * @version V1.0
 * @title: Component
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-07-29 10:22
 * @copyright: http://fingo.com.my/
 */
@Slf4j
public abstract class Component {
    protected String name;

    public Component(String name) {
        log.info("addLogStart Component InputParam: name : {} ", name);
        this.name = name;
    }

    public abstract void Add(Component c);

    public abstract void Remove(Component c);

    public abstract void Display(Integer depth);
}
